﻿using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using PlatformNetCore.Entity;
using PlatformNetCore.Entity.Models;

namespace PlatformNetCore.IService
{
    public interface IBasisService
    {
        #region 分类管理
        LayPager<Category> GetCategoryPagedList(int pageIndex, int pageSize, Expression<Func<Category, bool>> predicate);
        ResultResponse<Category> GetCategory(string id);
        ResultResponse AddCategory(Category model);
        ResultResponse UpdateCategory(Category model);
        ResultResponse DeleteCategory(string id);
        IEnumerable<SelectListItem> GetCategoryListDLL(string categoryType, bool isSelect = false, bool isAll = false);
        #endregion
    }
}
